import Vue from 'vue'
import App from './App.vue'
import '@/plugins/iview.js'
import '@/plugins/map.js'
import VueRouter from "vue-router"
import routes from "@/routes/index.js"
import Collapse from "@/components/collapse"
Vue.config.productionTip = false
Vue.component("UCollapse",Collapse)

const router = new VueRouter({
  mode:'history',
  routes // (缩写) 相当于 routes: routes
})

Vue.use(VueRouter)
new Vue({

  router,
  render: h => h(App),
}).$mount('#app')
